package com.hengmei.smallscreen.event

import androidx.annotation.MainThread
import com.hengmei.smallscreen.entity.GlobalNotificationEntity

class GlobalNotification {

    companion object {
        private lateinit var sInstance: GlobalNotification

        @MainThread
        fun get(): GlobalNotification {
            sInstance = if (::sInstance.isInitialized) sInstance else GlobalNotification()
            return sInstance
        }
    }

    fun postModbus(value : GlobalNotificationEntity) {
        LiveDataEvent.get().postModbus(value)
    }

}